package components;

import com.artemis.Component;

import org.newdawn.slick.geom.Shape;
public class Collides {
	//NOTE: The shape will always be centered at the entity's position, unless an offset is given.
	private Shape hitbox;
	private float offsetX, offsetY;
	
	public Collides(Shape shape, float x, float y)
	{
		this.hitbox = shape;
		this.setOffsetX(x);
		this.setOffsetY(y);
	}
	
	public Collides(Shape shape)
	{
		new Collides(shape, 0, 0);
	}
	
	public Shape getHitBox()
	{
		return hitbox;
	}

	public float getOffsetX() {
		return offsetX;
	}

	public void setOffsetX(float offsetX) {
		this.offsetX = offsetX;
	}

	public float getOffsetY() {
		return offsetY;
	}

	public void setOffsetY(float offsetY) {
		this.offsetY = offsetY;
	}
}
